package cn.le.dto;


import cn.le.enums.EDataFormat;
import cn.le.enums.EProtocol;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;

@ApiModel(value = "产品参数")
public class ProductDTO {
    @ApiModelProperty(value = "产品名称")
    @NotBlank
    private String name;
    @ApiModelProperty(value = "设备型号")
    @NotBlank
    private String model;
    @ApiModelProperty(value = "数据格式")
    private EDataFormat format;
    @ApiModelProperty(value = "是否加密")
    private Integer encrypt;
    @ApiModelProperty(value = "接入协议")
    private EProtocol protocol;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public EDataFormat getFormat() {
        return format;
    }

    public void setFormat(EDataFormat format) {
        this.format = format;
    }

    public Integer getEncrypt() {
        return encrypt;
    }

    public void setEncrypt(Integer encrypt) {
        this.encrypt = encrypt;
    }

    public EProtocol getProtocol() {
        return protocol;
    }

    public void setProtocol(EProtocol protocol) {
        this.protocol = protocol;
    }
}
